<?php
/**
 * Created by .
 * User: akun_yu@163.com
 * Date: 2018/1/31
 * Time: 下午8:59
 */

namespace App\SubApps\Account\Controllers;


use Hilaoyu\LaravelExtend\ControllerBase;
use Illuminate\Http\Request;


class ConsoleHomeController extends ControllerBase
{
    public function home(Request $request)
    {


        return $this->renderingResponse();

    }
    public function test(Request $request)
    {

        //dump(UtilFile::getExtension('ab.cls.cls'),UtilFile::getNameWithOutExtension('ab.cls.cls'));

        $a = [
            'resource' =>[
                'create' => '创建',
                'view_all' => '查看全部',
                'view_group' => '查看同组用户的',
                'view_own' => '查看自己的',
                'edit_all' => '编辑全部',
                'edit_group' => '编辑同组用户的',
                'edit_own' => '编辑自己的',
                'delete_all' => '删除全部',
                'delete_group' => '删除同组用户的',
                'delete_own' => '删除自己的',
            ],
            'boolean' =>[
                'allow' => '允许',
            ],
            'limit' =>[
                'limit' => '限制',
            ],
        ];

        dd(collect($a)->collapse()->keys()->join(','));

        return $this->renderingResponse();

    }

}
